package com.example.parkingproject.service;

import com.example.parkingproject.jopo.dto.AddAdminUserDto;
import com.example.parkingproject.jopo.dto.AdminLoginDto;
import com.example.parkingproject.jopo.dto.UpdateAdminUserDto;
import com.example.parkingproject.jopo.vo.AdminUserVo;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AdminService {
    void AddAdminUser(AddAdminUserDto addAdminUserDto);
    /*获取所有的管理员用户信息*/
    List<AdminUserVo> AdminList();

    AdminUserVo getAdminByCard(String cardId);

    void updateAdminAll(UpdateAdminUserDto updateAdminUserDto);

    void deleteAdmin(String cardId);

    String login(AdminLoginDto adminLoginDto);

    List<AdminUserVo> search(AddAdminUserDto addAdminUserDto);

    void setEnable(Integer id);

    void setDisable(Integer id);
}
